package com.example.rightmost.service;

import com.example.rightmost.entity.Comment;
import com.example.rightmost.entity.Result;

import java.util.List;
import java.util.Map;

public interface CommentService {

    List<Comment> getCommentList(String text);

    List<Comment> getCommentSonList(Comment comment);

    List<Comment> getCommentArea(Comment comment);

    Result addComment(Comment comment);

    Result addComment_2(Comment comment);

    Map<Integer, List<Comment>> getCommentSon(Integer pieceId);

    Result delete(Integer commentId);

}
